package com.personal.modules.sys.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.personal.modules.sys.dao.TSysRoleMenuDao;
import com.personal.modules.sys.entity.TSysRoleMenuEntity;
import com.personal.modules.sys.service.TSysRoleMenuService;



@Service("tSysRoleMenuService")
public class TSysRoleMenuServiceImpl implements TSysRoleMenuService {
	@Autowired
	private TSysRoleMenuDao tSysRoleMenuDao;
	
	@Override
	public TSysRoleMenuEntity queryObject(Long id){
		return tSysRoleMenuDao.queryObject(id);
	}
	
	@Override
	public List<TSysRoleMenuEntity> queryList(Map<String, Object> map){
		return tSysRoleMenuDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tSysRoleMenuDao.queryTotal(map);
	}
	
	@Override
	public void save(TSysRoleMenuEntity tSysRoleMenu){
		tSysRoleMenuDao.save(tSysRoleMenu);
	}
	
	@Override
	public void update(TSysRoleMenuEntity tSysRoleMenu){
		tSysRoleMenuDao.update(tSysRoleMenu);
	}
	
	@Override
	public void delete(Long id){
		tSysRoleMenuDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		tSysRoleMenuDao.deleteBatch(ids);
	}
	
}
